:root {
  --input-border-radius: var(--global-border-radius);
  --input-border-color: var(--global-neutral-color-3);
}

@lg: 44px;
@md: 38px;
@sm: 32px;
@xs: 26px;

.set-size(@size) {
  & {
    height: @size;
    .layui-input {
      height: @size;
      line-height: @size;
    }
  }
}


.layui-input {
  width: 100%;
  height: 38px;
  line-height: 38px;
  border-width: 1px;
  border-style: solid;
  border-color: var(--input-border-color);
  border-radius: var(--input-border-radius);
  display: inline-flex;
}

.layui-input input{
  height: 38px;
  line-height: 38px;
  background-color: #fff;
  color: rgba(0, 0, 0, 0.85);
  padding-left: 10px;
  display: inline-block;
  border: none;
  height: 100%;
  width: 100%;
}

.layui-input-append {
  background-color: #fafafa;
  border-left: 1px solid var(--input-border-color);
  display: flex;
  padding: 0 15px;
  flex: none;
  align-items: center;
}

.layui-input-prepend {
  background-color: #fafafa;
  border-right: 1px solid var(--input-border-color);
  display: flex;
  padding: 0 15px;
  flex: none;
  align-items: center;
}

.layui-input-wrapper {
  width: 100%;
  display: inline-flex;
  border: none;
}

.layui-input:hover,
.layui-input:focus-within {
  border-color: #d2d2d2 !important;
}

.layui-input-prefix {
  display: flex;
  flex: none;
  align-items: center;
  padding: 0 15px;
}

.layui-input-suffix {
  display: flex;
  flex: none;
  align-items: center;
  padding: 0 15px;
}

.layui-input-password,
.layui-input-clear {
  flex: none;
  display: flex;
  align-items: center;
  padding-right: 10px;
  color: rgba(0, 0, 0, 0.45);
}

.layui-input input::-webkit-input-placeholder {
  line-height: 1.3;
}

.layui-input{
  &[size="lg"] {
    .set-size(@lg);
  }
  &[size="md"] {
    .set-size(@md);
  }
  &[size="sm"] {
    .set-size(@sm);
  }
  &[size="xs"] {
    .set-size(@xs);
  }
}